package com.kaimy.controller 
{
	import com.kaimy.model.OpenModel;

	import br.com.stimuli.loading.BulkLoader;
	
	/**
	 * @author jbonfante
	date: Aug 2, 2009
	for: Roundarch Inc.
 
	Document Information:
	Project: KaimysAwesomeFlashProject
	Package: com.kaimy.controller.LoadController
	 */
	public class LoadController extends BulkLoader 
	{
		public static var _instance:LoadController = new LoadController("FileLoader");
		public var model:OpenModel;
		
		public function LoadController(name : String, numConnections : int = BulkLoader.DEFAULT_NUM_CONNECTIONS, logLevel : int = BulkLoader.DEFAULT_LOG_LEVEL)
		{
			if(!_instance)
			{
			super(name, numConnections, logLevel);
			}
			else
			{
				throw Error("Please use getInstance to access class.");
			}
		}
		
		
		
		
		static public function getInstance() : LoadController
		{
			if(!_instance)_instance = new LoadController("FileLoader");
			return _instance;
		}
	}
}
